/*
 * DirEntry.h
 *
 *  Created on: Mar 25, 2010
 *      Author: Lukasz Spintzyk
 */

#ifndef DIRENTRY_H_
#define DIRENTRY_H_

#ifndef PH_H_
#include "ph.h"
#endif


class DirEntry
{
public:
    DirEntry();
    DirEntry(const std::string name, uint32_t inodeNum, uint32_t fileType);
    ~DirEntry();

    uint32_t size();

    void read(const byte* d_buffer);
    void write(byte* buffer);

    std::string d_name;
    uint32_t d_inodeNum;
    byte d_fileType;
    uint16_t d_recordLen;
    byte d_nameLen;
};


#endif /* DIRENTRY_H_ */
